package edu.scdx.service;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.scdx.dao.UserInfoMapper;
import edu.scdx.dao.TransMapper;
import edu.scdx.entity.Trans;

@Service
public class TransServiceImpl implements TransService{
	
	@Autowired
    private TransMapper transMapper;

	public TransMapper getTransMapper() {
		return transMapper;
	}

	public void setTransMapper(TransMapper transMapper) {
		this.transMapper = transMapper;
	}

	@Override
	public Trans getTrans(String userTel) {
		
		return transMapper.getTrans(userTel);
		
	}

	@Override
	public void addTrans(String userTel, String address, String phone, String postcode,String name) {
		
		transMapper.addTrans(userTel,address,phone,postcode,name);
		
	}

	@Override
	public void updateTrans(String userTel, String address, String phone, String postcode,String name) {
		
		transMapper.updateTrans(userTel,address,phone,postcode,name);
		
	}

	
	
}
